package com.cmall.common.foundation.constant;

import java.text.SimpleDateFormat;

/**
 * 业务常量类
 */
public class BizConstant {

	/**日结统计查询按照门店统计*/
	public static final String STATIS_QUERY_TYPE_BRANCH = "0";
	/**日结统计查询按照时间统计*/
	public static final String STATIS_QUERY_TYPE_TIME = "1";
	
	/**未审核 未生效  引入*/
	public static final String ZERO = "0";
	/**已审核 已生效  未引入 正常*/
	public static final String ONE = "1";
	/**已经停用 */
	public static final String TWO = "2";
	
	public static final String THREE = "3";
	/**终止*/
	public static final String FOUR = "4";
	/**退货单-已保存*/
	public static final String FIVE = "5";

	/**统计时间格式按照年*/
	public static final String STATIS_QUERY_TIME_YEAR = "1";
	/**统计时间格式按照月*/
	public static final String STATIS_QUERY_TIME_MONTH = "2";
	/**统计时间格式按照日*/
	public static final String STATIS_QUERY_TIME_DAY = "3";
	
	
	/**促销商品库存预减操作*/
	public static final String PROMOTION_STOCK_SUBTRACT_ADVANCE = "YJ";
	/**促销商品库存减少*/
	public static final String PROMOTION_STOCK_SUBTRACT_FORMAL = "SJ";
	/**预充库存*/
	public static final String PROMOTION_STOCK_SUBTRACT_PRIMING = "YC";
	/**充库存*/
	public static final String PROMOTION_STOCK_SUBTRACT_FULL = "SC";
	
	
	/**促销商品为正品*/
	public static final String PROMOTION_SHEET_NO_PARENT = "0";
	/**促销商品为促销品*/
	public static final String PROMOTION_SHEET_NO_SUB = "1";
	
	/**促销类型为赠品促销*/
	public static final String PROMOTION_TYPE_BG = "BG";
	/**促销类型为捆绑促销*/
	public static final String PROMOTION_TYPE_KB = "KB";
	/**促销类型为加元换购*/
	public static final String PROMOTION_TYPE_AT = "AT";
	/**促销类型为限时特价*/
	public static final String PROMOTION_TYPE_LT = "LT";
	
	/**促销商品状态为可用*/
	public static final String PROMOTION_AVAILABLE_FLAG_YES = "1";
	/**促销商品状态为不可用*/
	public static final String PROMOTION_AVAILABLE_FLAG_NO = "0";
	
	
	/**促销为捆绑或赠品促销*/
	public static final String PROMOTION_TYPE_BG_KB = "1";
	/**促销为其它促销*/
	public static final String PROMOTION_TYPE_OTHER = "0";
	/**门店限量方式为不限量*/
	public static final String PROMOTION_TYPE_LIMIT_WAY_ZERO = "0";
	
	/**时间按照年月日格式化*/
	public static final SimpleDateFormat DATEFORMAT = new SimpleDateFormat("yyyy-MM-dd");
	/**时间按照年月格式化*/
	public static final SimpleDateFormat MONTHFORMAT = new SimpleDateFormat("yyyy-MM");
	/**时间按照年进行格式化*/
	public static final SimpleDateFormat YEARFORMAT = new SimpleDateFormat("yyyy");
	/**
	 * 商品标识 0 平台  1 自营
	 */
	public static final String PALTFORM_SUPPORT = "0";
	public static final String SELF_SUPPORT = "1";
	/**
	 * 默认分类编码和名称
	 */
	public static final String DEFAULT_CATENO = "99";
	public static final String DEFAULT_CATENAME = "默认类别";
	/**
	 * 分店商品状态   (1:上架，2:下架，3:新增，4:删除)
	 */
	public static final String ON_SALE = "1";
	public static final String OFF_SALE = "2";
	public static final String NEW_ADDED = "3";
	public static final String ON_DELETED = "4";


	/**出入库标识*/
	public static final String IN = "+";
	public static final String OUT = "-";
	/**单据类型
	 * po-采购单
	 * pi-采购收货单
	 * ro-采购退货单
	 * pt-销售标识
	 * pd-盘点单
	 * bd-爱鲜蜂单据
	 * re-补货单
	 * */
	public static final String PO = "PO";
	public static final String PI = "PI";
	public static final String RO = "RO";
	public static final String PT = "PT";
	public static final String PD = "PD";
	public static final String BD = "BD";
	public static final String RE = "RE";
	/**门店外采 供应商编号*/
	public static final String OUT_SUPPLY = "9999";
	/**供应商-中商惠民*/
	public static final String MAIN_SUPCUST = "0000";

	/**新增*/
	public static final String ADD = "added";
	/**更新*/
	public static final String UPDATE = "modified";
	/**删除*/
	public static final String REMOVE = "removed";
	/**删除再添加标识*/
	public static final String READD = "reAddAfterMoveGoodsFromBranch";

}
